<include file="Common/Api/header_new" />
<div class="container-fluid">
<include file="Common/Api/left_menu_new" />
  <div class="affix container_right">
  
    <div class="title">生成API</div>
    
    <a type="button" class="btn btn-primary apiadd-btn-margin _api_button" data-status="{$exists_import}">生成API</a>
    
    <div class="container apiadd-list"  id="table_content">
          <script id="list_template" type="text/html">
          <table class="table table-bordered table-striped margin-top">
          <colgroup>
            <col class="col-xs-4">
            <col class="col-xs-3">
            <col class="col-xs-2">
            <col class="col-xs-3">
          </colgroup>
            <thead>
            <tr>
              <th>API名称</th>
              <td class="padding-3">
                    <div class="btn-group" style="width:100%;">
                      <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:100%">
                        <b class="_text_status">全部</b>
                        <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu" aria-labelledby="dropdownMenu1" style="width:100%">
                        <li role="presentation" class="_dropdown_menu_li" data-status="-1" data-name="全部"><a href="#">全部</a></li>
                        <li role="presentation" class="_dropdown_menu_li" data-status="-1" data-name="生成中..."><a href="#">生成中…</a></li>
                        <li role="presentation" class="_dropdown_menu_li" data-status="-1" data-name="未发布"><a href="#">未发布</a></li>
                        <li role="presentation" class="_dropdown_menu_li" data-status="-1" data-name="已发布"><a href="#">已发布</a></li>
                      </ul>
                    </div>   
                      
              </td>
              <th>修改时间</th>
              <th>操作</th>
            </tr>
            </thead>
            
            <tbody>
                {{each list as value key}}
                <tr>
                  <td class="text-left"><a>{{value.api_name}}</a></td>
                  <td>
                    生成中
                  </td>
                  <td>{{value.update_time | dateFormat:'yyyy-MM-dd hh:mm:ss'}}</td>
                  <td class="table-text-btn">
                      <a>编辑</a>
                      <a>调试</a>
                      <a data-toggle="modal" data-target=".bs-example-modal-sm-update">更新</a>
                      <a data-toggle="modal" data-target=".bs-example-modal-sm-close">删除</a>
                  </td>
                </tr>
                {{/each}}
                <tr>
                  <td class="text-left"><a>新浪粉丝查询新浪粉丝查询</a></td>
                  <td>
                    未发布
                  </td>
                  <td>2016-01-01 15:30</td>
                  <td class="table-text-btn">
                      <a>编辑</a>
                      <a>调试</a>
                      <a data-toggle="modal" data-target=".bs-example-modal-sm-release">发布</a>
                      <a data-toggle="modal" data-target=".bs-example-modal-sm-close">删除</a>
                  </td>
                </tr>
               
            </tbody>
            
          </table>
          
          
            <!-- <nav class="text-right">
              <ul class="pagination">
                <li>
                  <a href="#" aria-label="Previous">
                    <span aria-hidden="true">&lt;</span>
                  </a>
                </li>
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li>
                  <a href="#" aria-label="Next">
                    <span aria-hidden="true">&gt;</span>
                  </a>
                </li>
              </ul>
            </nav> -->
        </script>
    
  </div>
</div>


<div class="modal fade bs-example-modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">&nbsp;</h4>
      </div>
      <div class="modal-body text-center">
        无数据源，请先去导入数据。
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary _import_submit" data-dismiss="modal">确认</button>
      </div>
    </div>
  </div>
</div>


<div class="modal fade bs-example-modal-sm-update" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">&nbsp;</h4>
      </div>
      <div class="modal-body text-center">
        更新该API?
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-info" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary">更新</button>
      </div>
    </div>
  </div>
</div>

<div class="modal fade bs-example-modal-sm-close" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">&nbsp;</h4>
      </div>
      <div class="modal-body text-center">
        删除该API?
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-info" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary">确定</button>
      </div>
    </div>
  </div>
</div>

<script language="javascript" type="text/javascript" src="__PUBLIC__/home/dist/drag/tab.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/artTemplate.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/mapiindex.js"></script>

</body>
</html>
